package com.rui.function;

import java.util.function.Supplier;

public class Demo05 {
    public static void main(String[] args) {
//        Supplier<Integer> supplier = new Supplier<Integer>() {
//            @Override
//            public Integer get() {
//                return 1024;
//            }
//        };

        Supplier<Integer> supplier = () -> {
            return 1024;
        };
        Integer integer = supplier.get();
        System.out.println(integer);
    }
}
